package edu.ncst.baseweb.controller.borrow;

import cn.wintersun.basecommon.common.Result;
import edu.ncst.baseweb.dao.BorrowRecord;
import edu.ncst.baseweb.service.intrer.borrow.ManagementRecordService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * 设备借用管理
 * 设备借用记录
 */
@RestController
@RequestMapping("/admin/bormanage/borrecords")
@PreAuthorize("hasAuthority('5')")
public class ManagementRecordController {
    @Autowired
    private ManagementRecordService managementRecordService;


    //管理员全部借用记录列表
    @RequestMapping(value = "list",method = RequestMethod.POST)
    public Result<IPage<BorrowRecord>> list(@RequestBody BorrowRecord borrowrecord){

        return  managementRecordService.list(borrowrecord);
    }
}
